package gupao.design.factory.factorymethod;

import gupao.design.factory.ICourse;

/**
 * @author: liuchenhui
 * @create: 2019-04-14 14:30
 **/
public class FactoryMethodTest {
    public static void main(String[] args) {
        ICourseFactory courseFactory = new JavaCourseFactory();
        ICourse iCourse = courseFactory.create();
        iCourse.record();

        PythonCourseFactory pythonCourseFactory = new PythonCourseFactory();
        iCourse = pythonCourseFactory.create();
        iCourse.record();
    }
}
